53b35dfa27c756da97b4597d58d4f97518bf254b,openhtmltopdf-pdfbox/src/main/java/com/openhtmltopdf/pdfboxout/PdfBoxTextRenderer.java,PdfBoxTextRenderer,getReplacementChar,#FSFont#,131
Before Change
for (FontDescription des : descriptions) {
try {
float width = des.getFont().getStringWidth(replaceStr);
// Got here without throwing, so the char exists in font.
ReplacementChar replace = new ReplacementChar();
replace.replacement = replacement;
replace.fontDescription = des;
replace.width = width;
return replace;
} catch (Exception e)
{
After Change
for (FontDescription des : descriptions) {
try {
des.getFont().getStringWidth(replaceStr);
// Got here without throwing, so the text exists in font.
ReplacementChar replace = new ReplacementChar();